package com.fmy.mcsecurity.login.service;

import com.fmy.mcsecurity.commons.resp.SecurityResp;
import com.fmy.mcsecurity.commons.unusual.RefreshTokenException;
import org.springframework.security.core.Authentication;

/**
 * @author Mr.fmy
 * @version 1.0.0
 * @ClassName DefultRefreshTokenService
 * @Description TODO 默认刷新token接口
 * @createTime 2020/4/15 10:15
 */
public class DefultRefreshTokenService implements RefreshTokenService {
    @Override
    public Authentication refresh(String userId) {
        throw new RefreshTokenException(SecurityResp.TOKEN_REFRESH_NOT_SUPPORT);
    }
}
